/*
 * Copyright (c) 2018, apexes.net. All rights reserved.
 *
 *         http://www.apexes.net
 *
 */
package net.apexes.vertx;

import com.google.inject.Injector;
import com.google.inject.Provider;

/**
 * @author <a href="mailto:hedyn@foxmail.com">HeDYn</a>
 */
class InjectorHolderImpl implements InjectorHolder {


    private final Provider<Injector> provider;
    
    InjectorHolderImpl(Provider<Injector> provider) {
        this.provider = provider;
    }
    
    @Override
    public Injector injector() {
        return provider.get();
    }
    
}
